import request from '@/utils/request'

// 查询每日制令单列表
export function listOrderinfo(query) {
  return request({
    url: '/system/orderinfo/list',
    method: 'get',
    params: query
  })
}

// 查询每日制令单详细
export function getOrderinfo(id) {
  return request({
    url: '/system/orderinfo/' + id,
    method: 'get'
  })
}

// 新增每日制令单
export function addOrderinfo(data) {
  return request({
    url: '/system/orderinfo',
    method: 'post',
    data: data
  })
}

// 修改每日制令单
export function updateOrderinfo(data) {
  return request({
    url: '/system/orderinfo',
    method: 'put',
    data: data
  })
}

// 删除每日制令单
export function delOrderinfo(id) {
  return request({
    url: '/system/orderinfo/' + id,
    method: 'delete'
  })
}

// 导出每日制令单
export function exportOrderinfo(query) {
  return request({
    url: '/system/orderinfo/export',
    method: 'get',
    params: query
  })
}